const express = require('express')

const app = express()

app.set('view engine', 'ejs')

app.get('/', (req, res) => {
    res.render('index', {
        news: ['我是小新闻', 'woyeshi', '哈哈哈']
    })
})

app.listen(3000)